<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<% 
request.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset=utf-8");
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
  <head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="<%=basePath%>/css2/style.css" rel='stylesheet'/>
	<script language="javascript" src="<%=basePath%>/js2/login.js"></script>
	<title>登录界面</title>
</head>
<body>
<div class="content0" >
	<img alt="images/logoko.png" src="images/logoko.png"><br><br>
  	<h2>短视频，就来V+视频</h2>
  	<br><h2>为您提供最优秀的短视频</h2>
</div>
<div class="content2">
	
	<div class="content1">
	<br><br>
	<form action="servlet/Login_Servlet" method="post" onsubmit="return mycheck();">
		<table border="0" cellspacing="0">	
			<tr align="center">
				<td></td>
				<td colspan="2"><h1>用户登录</h1></td>
			</tr>
			<tr align="center">
				<td>用户名：</td>
				<td><input type="text" name="username" id="username" ></td>
				<td><span id="username_span" style="color: red">*</span></td>
			</tr>
			<tr align="center">
				<td>密 码：</td>
				<td><input type="password" id="password" name="password"></td>
				<td><span id="password_span" style="color: red">*</span></td>
			</tr>
			<tr align="center">
				<td></td>
				<td colspan="2"><input id="logBtn" type="submit" class="register" value="登录"></td>
			</tr>									
		
	</table>
	</form>
	<%
	  String error = (String)request.getSession().getAttribute("error");
      if(error!=null){
          	out.println("请重新登录：<font color='red'>"+error+"</font><br>");
      }
   %>	
	</div>
</div>
<div class="last"> © 2018 V+视频 All rights reserved.</div>
</body>
</html>
